package com.oneraku.service.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.oneraku.service.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 代拍
 * </p>
 *
 * @author renhui <337375464@qq.com>
 * @since 2020-02-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AgentSeckill extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 购买链接
     */
    private String url;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 参考价格
     */
    private String priceRefer;

    /**
     * 价格上限
     */
    private String priceCeil;

    /**
     * 代拍数量
     */
    private String num;

    /**
     * 照片
     */
    private String images = "";

    /**
     * 备注
     */
    private String remarks = "";

    /**
     * 发起用户id
     */
    private String creator;

    /**
     * 0刚发布
     */
    private Integer status;

    /**
     * 步骤信息
     */
    private String step;

    /**
     * 0代拍，1代购，2集货转运
     */
    private Integer type = 0;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private String info;

    @TableField(exist = false)
    private String visualAddr;

    @TableField(exist = false)
    private String address;
}
